﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DecoratorModel
{
    public class DB_News : Component_News
    {
        /// <summary>
        /// 从数据库中取新闻
        /// </summary>
        /// <returns></returns>
        public override List<News> getListOfNews()
        {
            List<News> _list = new List<News>();
            //从数据库中取得数据填充到_list 中
            Console.WriteLine("从数据库中取得数据填充到_list 中");
            return _list;

        }
    }
}
